<?php
defined('JOC') or die;

class Module_field_model extends Model
{
	private $arrFields = Array() ;
	function __construct($module_id = 0)
	{
    parent::__construct();

    if($module_id)
		{
			$sql = " SELECT * FROM {prefix}module_field WHERE module_id = {$module_id} ; " ;
			$this->arrFields = $this->db()->query($sql, true, 999999) ;
		}
	}
	function getFields()
	{
		return $this->arrFields ;
	}
}